package com.pat.miniloyalty;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.http.*;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

@SuppressWarnings("serial")
public class MiniloyaltyServlet extends HttpServlet
{
	protected final static Logger m_log = Logger.getLogger(MiniloyaltyServlet.class.getName()); 
	
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException
	{
//		m_log.info("We are here...");
//		UserService userService = UserServiceFactory.getUserService();
//		User user = userService.getCurrentUser(); 
//		
//		if( user != null )
//		{
//			resp.setContentType("text/plain");
//			resp.getWriter().println("Hello, " + user.getNickname());
//		}else
//		{
//			resp.sendRedirect(userService.createLoginURL(req.getRequestURI()));
//		}
		
	}
}
